package com.bw.shopping.adapter;

import com.bw.mvvm.entity.CartEntity;
import com.bw.mvvm.network.load.LoadImage;
import com.bw.shopping.R;
import com.bw.shopping.mvvm.model.entity.OrderAmountEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class OrderFormAdapter extends BaseQuickAdapter<OrderAmountEntity.DataBean.OrderGoodsListBean, BaseViewHolder> {
    public OrderFormAdapter() {
        super(R.layout.item_orderform);

    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, OrderAmountEntity.DataBean.OrderGoodsListBean dataBean) {
        baseViewHolder.setText(R.id.item_orderform_value,dataBean.getGoods_desc());
        baseViewHolder.setText(R.id.item_orderform_money, "价钱："+dataBean.getGoods_price()+"￥");
        baseViewHolder.setText(R.id.item_orderform_centen, dataBean.getGoods_sku());
        LoadImage.loadMatchImg(dataBean.getGoods_icon(),baseViewHolder.getView(R.id.item_orderform_im));

    }
}
